package com.ny.wlw;

public class Dog1 {
    public static void main(String[] args) {
        Dog dog= new Dog();
        Cat cat=new Cat();
        dog.setName1("小黑");
        System.out.println(dog.getName1());

        System.out.println(dog.a);
        dog.test();
        dog.paly();

        System.out.println(cat.b);
        cat.test1();
        cat.play();

    }
}
